package com.gitee.wsl.mathematics.function.noise

import com.gitee.wsl.mathematics.vector.vec2.Vec2f
import com.gitee.wsl.mathematics.vector.vec3.Vec3f


interface Noise2d {
    fun eval(x: Float, y: Float): Float

    fun eval(p: Vec2f) = eval(p.x, p.y)

    companion object
}

interface Noise3d {
    fun eval(x: Float, y: Float, z: Float): Float

    fun eval(p: Vec3f) = eval(p.x, p.y, p.z)

    companion object
}